package singleton;

/**
 * 饿汉式
 *
 * @author yangyang
 * @date 2017/8/25 18:17
 * @email kekecany@163.com
 */
public class HungryManSingleton {

    private volatile static HungryManSingleton singleton = new HungryManSingleton();

    private HungryManSingleton() {

    }

    public static HungryManSingleton getInstance() {
        return singleton;
    }
}
